using Nop.Core.Infrastructure;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nop.Plugin.DiscountRules.Customers.Data
{
	public class EfStartupTask:IStartupTask
	{
		public void Execute()
		{
			//It's required to set initializer to null (for SQL Server Compact).
			Database.SetInitializer<DiscountCustomerObjectContext>(null);
		}

		public int Order
		{
			//ensure that this task is run first 
			get { return 0; }
		}
	}
}
